package org.lyg.shiro.service.impl;

import org.lyg.dao.IPermissionMapper;
import org.lyg.shiro.service.IPermissionService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service("permissionService")
public class PermissionServiceImpl implements IPermissionService {
    @Autowired
    private IPermissionMapper permissionMapper;

    @Override
    public List<String> findRolesByUserName(String name) {
        return permissionMapper.findPermissionByUserName(name);
    }
}
